json = require "cjson"

a= '{"deviceid": "dev","taskid": "","tasktype": "3101","configlist":{"sd_new_old_cp_switch":{"vod":"gitvlive"}}}'
atb=json.decode(a)
print(atb.deviceid)
print(atb.configlist)
print(atb.configlist.sd_new_old_cp_switch.vod)


cjson = require "cjson"
 str1= '{"deviceid": "dev","taskid": "","tasktype": "3101","configlist":{"vod":"gitvlive"}}'
table1= cjson.decode(str1)
print("日期",table1.configlist.vod)

local authInfo_userId,authInfo_userId2,authInfo_userId3
authInfo_userId = 1
if (authInfo_userId  ~= nil or authInfo_userId ~='') then
 print(authInfo_userId)
end



local function test()

 return false

end

if (authInfo_userId2 == nil or authInfo_userId2=='') then
 print(test())
end